package com.epalmpay.service.weixin.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.epalmpay.handler.AbstractHandler;
import com.epalmpay.handler.CodeHandler;
import com.epalmpay.handler.MenuHandler;
import com.epalmpay.handler.MsgHandler;
import com.epalmpay.handler.SubscribeHandler;
import com.epalmpay.handler.UnsubscribeHandler;


/**
 * 
 * @author zsj
 *  项目启动初始化 针对多公众号  跳转到不同的类处理对应的逻辑
 */

//@Scope("prototype")
@Component("wxService")
public class WxService extends BaseWxService {
	
	@Autowired
	private SubscribeHandler subscribeHandler;

	@Autowired
    protected  UnsubscribeHandler unsubscribeHandler;

	@Autowired
	private MenuHandler menuHandler;

	@Autowired
	protected MsgHandler msgHandler;

	@Autowired
	private CodeHandler codeHandler;

	@Override
	protected MenuHandler getMenuHandler() {
		return this.menuHandler;
	}

	@Override
	protected SubscribeHandler getSubscribeHandler() {
		return this.subscribeHandler;
	}

	@Override
	protected UnsubscribeHandler getUnsubscribeHandler() {
		return this.unsubscribeHandler; 
	}

	@Override
	protected AbstractHandler getLocationHandler() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected MsgHandler getMsgHandler() {
		// TODO Auto-generated method stub
		return this.msgHandler;
	}

	/**
	 * 扫码事件
	 */
	@Override
	protected AbstractHandler getScanHandler() {
		// TODO Auto-generated method stub
		return this.codeHandler;
	}
  

}
